<template>
    <view class="Wrapper" :style="{ '--color': color }">
        <status-bar :title="title"></status-bar>
        <view class="content"></view>
        <view class="footer">
            <view class="fotBox">
                <input type="text" class="chatContent" placeholder="请输入您想咨询的问题" />
                <view class="Send">
                    <view class="iconfont icon-fasong white size46"></view>
                </view>
            </view>
        </view>
    </view>
</template>

<script>
    import { mapState } from 'vuex';
    export default {
        data() {
            return {
                title: 'Ai咨询'
            };
        },
        methods: {},
        computed: {
            ...mapState(['color', 'totalHeight'])
        }
    };
</script>

<style lang="scss">
    page {
        background-color: $page;
        // padding-bottom: calc(10rpx + constant(safe-area-inset-bottom));
    }
</style>
<style lang="scss" scoped>
    .Wrapper {
        width: 100%;
        height: 100vh;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        .content {
            width: 100%;
            flex: 1;
            border: 1px solid red;
        }
        .footer {
            width: 100%;
            background-color: #fff;
            padding-bottom: constant(safe-area-inset-bottom);
            padding-bottom: env(safe-area-inset-bottom);
            .fotBox {
                width: 100%;
                height: 100rpx;
                display: flex;
                align-items: center;
                padding: 10rpx 24rpx;
                .chatContent {
                    flex: 1;
                    height: 80rpx;
                    padding: 0 20rpx;
                    background-color: #f5f5f5;
                    font-size: 28rpx;
                    color: #333;
                    border-radius: 10rpx;
                }
                .Send {
                    width: 76rpx;
                    height: 76rpx;
                    background-color: var(--color);
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    border-radius: 50%;
                    margin-left: 40rpx;
                }
            }
        }
    }
</style>
